import {configureStore as createStore} from '@reduxjs/toolkit'

import MessageReducer ,{MessageType}from './MessageStore'
import TokenReduce,{TokenType} from './TokenStore'
import ServiceReducer ,{ServiveInfoType}from './ServiceInfoStore'
import CustomerInfoReducer,{CustomerInfoType} from './CustomerStore'

export type stateType = {
    MessageReducer:MessageType[],
    TokenReduce:TokenType,
    ServiceReducer:ServiveInfoType,
    CustomerInfoReducer:CustomerInfoType
}

const store = createStore({
    reducer:{
        MessageReducer,
        TokenReduce,
        ServiceReducer,
        CustomerInfoReducer
    }
})

export default store